import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './plugins/element.js'
import 'normalize.css'
// 引入全局样式
import '@/assets/public.css'
// 引入字体图标
import '@/assets/icon/iconfont.css'
Vue.config.productionTip = false
// 全局过滤器
Vue.filter('rank', function (v) {
  let red
  switch (v) {
    case '0': red = '一级'; break
    case '1': red = '二级'; break
    case '2': red = '三级'; break
    default: red = '暂未分级'
  }
  return red
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
